<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED==false) die();?>
<?
$element = SelectIElement(
    array("rand"=>"desc"),
    array("IBLOCK_TYPE"=>"catalog","ACTIVE"=>"Y"),
    false,1,array()
    )
?>
<?$APPLICATION->IncludeComponent(
	"bitrix:catalog.element",
	"main_random",
	Array(
		"IBLOCK_TYPE" => "catalog",
		"IBLOCK_ID" => $element[0]["IBLOCK_ID"],
		"ELEMENT_ID" => $element[0]["ID"],
		"ELEMENT_CODE" => "",
		"SECTION_ID" => "",
		"SECTION_CODE" => "",
		"PROPERTY_CODE" => array(0=>"",1=>"",),
		"OFFERS_FIELD_CODE" => array(0=>"ID",1=>"PREVIEW_PICTURE",2=>"",),
		"OFFERS_PROPERTY_CODE" => array(0=>"CML2_LINK",1=>"SIZE",2=>"",),
		"OFFERS_SORT_FIELD" => "sort",
		"OFFERS_SORT_ORDER" => "asc",
		"SECTION_URL" => "",
		"DETAIL_URL" => "",
		"BASKET_URL" => "/personal/basket.php",
		"ACTION_VARIABLE" => "action",
		"PRODUCT_ID_VARIABLE" => "id",
		"PRODUCT_QUANTITY_VARIABLE" => "quantity",
		"PRODUCT_PROPS_VARIABLE" => "prop",
		"SECTION_ID_VARIABLE" => "SECTION_ID",
		"CACHE_TYPE" => "A",
		"CACHE_TIME" => "36000000",
		"CACHE_GROUPS" => "Y",
		"META_KEYWORDS" => "-",
		"META_DESCRIPTION" => "-",
		"BROWSER_TITLE" => "-",
		"SET_TITLE" => "N",
		"SET_STATUS_404" => "N",
		"ADD_SECTIONS_CHAIN" => "Y",
		"PRICE_CODE" => array(0=>"SALE",1=>"BASE",),
		"USE_PRICE_COUNT" => "N",
		"SHOW_PRICE_COUNT" => "3",
		"PRICE_VAT_INCLUDE" => "Y",
		"PRICE_VAT_SHOW_VALUE" => "N",
		"USE_PRODUCT_QUANTITY" => "N",
		"OFFERS_CART_PROPERTIES" => array(0=>"CML2_LINK",1=>"SIZE",),
		"LINK_IBLOCK_TYPE" => "",
		"LINK_IBLOCK_ID" => "",
		"LINK_PROPERTY_SID" => "",
		"LINK_ELEMENTS_URL" => "link.php?PARENT_ELEMENT_ID=#ELEMENT_ID#"
	)
);?>